package com.fesine.ssh.model;

/**
 * Created by Fesine on 2016/2/21.
 */

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 菜单实体对象
 *
 * @author fesine
 */
@Entity
@Table(name = "t_menu")
public class Menu extends BasePo {
    /**
     * 分类名称
     */
    private String text;
    /**
     * 跳转url
     */
    private String url;
    /**
     * 父节点的id
     */
    private String pid;
    /**
     * 图标样式
     */
    private String iconCls;
    /**
     * 0为叶子,1为非叶子
     */
    private int leaf;
    /**
     * 排序
     */
    private int orderNum;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public int getLeaf() {
        return leaf;
    }

    public void setLeaf(int leaf) {
        this.leaf = leaf;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public Menu(String text, String url, String pid, String iconCls, int leaf, int orderNum) {
        this.text = text;
        this.url = url;
        this.pid = pid;
        this.iconCls = iconCls;
        this.leaf = leaf;
        this.orderNum = orderNum;
    }
}
